package test;

import ms.aurora.app.AppWindow;

import javax.swing.*;
import java.awt.*;

public class DefaultAppWindow extends AppWindow {
    private static final long serialVersionUID = 1L;
    private JPanel contentSlotA;
    private JPanel mainSlotA;

    public DefaultAppWindow() {
        GridBagLayout gridBagLayout = new GridBagLayout();
        gridBagLayout.columnWidths = new int[]{0, 0};
        gridBagLayout.rowHeights = new int[]{0, 0};
        gridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE};
        gridBagLayout.rowWeights = new double[]{1.0, Double.MIN_VALUE};
        getContentPane().setLayout(gridBagLayout);

        JPanel contentPane = new JPanel();
        GridBagConstraints gbc_contentPane = new GridBagConstraints();
        gbc_contentPane.fill = GridBagConstraints.BOTH;
        gbc_contentPane.gridx = 0;
        gbc_contentPane.gridy = 0;
        getContentPane().add(contentPane, gbc_contentPane);
        GridBagLayout gbl_contentPane = new GridBagLayout();
        gbl_contentPane.columnWidths = new int[]{0, 0};
        gbl_contentPane.rowHeights = new int[]{0, 0, 0};
        gbl_contentPane.columnWeights = new double[]{1.0, Double.MIN_VALUE};
        gbl_contentPane.rowWeights = new double[]{1.0, 1.0, Double.MIN_VALUE};
        contentPane.setLayout(gbl_contentPane);

        mainSlotA = new JPanel();
        GridBagConstraints gbc_mainSlotA = new GridBagConstraints();
        gbc_mainSlotA.insets = new Insets(0, 0, 5, 0);
        gbc_mainSlotA.fill = GridBagConstraints.BOTH;
        gbc_mainSlotA.gridx = 0;
        gbc_mainSlotA.gridy = 0;
        contentPane.add(mainSlotA, gbc_mainSlotA);
        registerSlot("mainSlot", mainSlotA);

        JPanel footerPanel = new JPanel();
        GridBagConstraints gbc_footerPanel = new GridBagConstraints();
        gbc_footerPanel.fill = GridBagConstraints.BOTH;
        gbc_footerPanel.anchor = GridBagConstraints.NORTHWEST;
        gbc_footerPanel.gridx = 0;
        gbc_footerPanel.gridy = 1;
        contentPane.add(footerPanel, gbc_footerPanel);
        footerPanel.setLayout(new GridLayout(1, 0, 0, 0));

        JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
        footerPanel.add(tabbedPane);

        contentSlotA = new JPanel();
        tabbedPane.addTab("New tab", null, contentSlotA, null);
        contentSlotA.setLayout(new GridLayout(1, 0, 0, 0));
        registerSlot("tabSlot", contentSlotA);
        setSize(800, 600);
        setVisible(true);
    }
}
